#include "tp6806.h"
#include "osd_func.h"
#include "Video_3_res.h"


void show_Video_3_page (void)
{
	osd_init();

	spi_load_rls(Video_3_com_1_rlsatt_ptr, Video_3_com_1_rlsatt_addr,
			Video_3_com_1_rlsatt_size, VIDEO_3_CODE_OFFSET);

	spi_load_rls(Video_3__dummy1__rlsatt_ptr, Video_3__dummy1__rlsatt_addr,
			Video_3__dummy1__rlsatt_size, VIDEO_3_CODE_OFFSET); // dummy


	spi_load_rls(Video_3_com_0_rlsatt_ptr, Video_3_com_0_rlsatt_addr,
			Video_3_com_0_rlsatt_size, VIDEO_3_CODE_OFFSET);

	spi_load_rls(Video_3__dummy2__rlsatt_ptr, Video_3__dummy2__rlsatt_addr,
			Video_3__dummy2__rlsatt_size, VIDEO_3_CODE_OFFSET); // dummy


	spi_load_rls(Video_3_com_2_rlsatt_ptr, Video_3_com_2_rlsatt_addr,
			Video_3_com_2_rlsatt_size, VIDEO_3_CODE_OFFSET);

	spi_load_rls(Video_3__dummy3__rlsatt_ptr, Video_3__dummy3__rlsatt_addr,
			Video_3__dummy3__rlsatt_size, VIDEO_3_CODE_OFFSET); // dummy




	row_A_disable();
	row_B_disable();
	row_C_disable();
	row_D_disable();
	rlg_A_disable();
	rlg_B_disable();
	rlg_C_disable();
	rlg_D_disable();
	rls_B_config(Video_3_RLs_Thread_B_regaddr);
	rls_C_config(Video_3_RLs_Thread_C_regaddr);
	rls_D_config(Video_3_RLs_Thread_D_regaddr);
	win_A_disable();
	win_B_disable();
	win_C_disable();
	win_D_disable();
	mat_A_disable();
	mat_B_disable();
	mat_C_disable();
	mat_D_disable();


	osd_wr_rls_en(RLS_D_EN | RLS_C_EN | RLS_B_EN);
	osd_wr_en(OSD_CTRL_EN | OSD_RLS_EN);
}

